#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<vector>
#include<string.h>
#include<algorithm>
using namespace std;

class print
{
public:
	bool operator()(int v)
	{
	
			return v>5;
	}
};

void test01()
{
	vector<int>v;
	for (int i = 0; i < 10; i++)
	{
		v.push_back(i);
	}
	print p1;
	vector<int>::iterator it = find_if(v.begin(), v.end(), p1);
	if (it == v.end())
	{
	cout << "no" << endl;
	}
	else
	{
		cout << "yes" << *it << endl;
	}
}
int main()
{
	test01();
	return 0;
}
